package com.atguigu.springcloud.service;

import com.atguigu.springcloud.service.impl.OrderHystrixServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-PAYMENT", fallback = OrderHystrixServiceImpl.class)
public interface IOrderHystrixService {

    @GetMapping("/payment/hystrix/ok/{id}")
    public String paymentInfo_OK(@PathVariable(value = "id") Integer id);

    @GetMapping("/payment/hystrix/time-out/{id}")
    public String paymentInfo_TimeOut(@PathVariable(value = "id") Integer id);

}
